//
//  GameDataCollection.h
//  ShovelBattle
//
//  Created by Eleve on 13/03/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GameDataController  : NSObject

@property (nonatomic, retain) NSMutableDictionary *mapDataDictionary;
@property (nonatomic, retain) NSMutableDictionary *treasureMenuDictionary;

@property (nonatomic, retain) NSMutableDictionary *mapSquare;
@property (nonatomic, assign) BOOL treasureMenuTouchable;
@property (nonatomic, assign) BOOL allTreasuresDiscovered;
@property (nonatomic, retain) NSNumber *currentTreasureButton;

- (void)initDatas;
- (void)addMapDataWithName:(int)name andCoordsA:(CGPoint)coordsA andCoordsB:(CGPoint)coordsB;
- (void)addTreasureMenuDataWithName:(int)name;

- (void)setTreasureButton:(id)name clickable:(BOOL)clickable;
- (void)setTreasureButton:(id)name selected:(BOOL)selected;
- (void)setSquareDugBySquareId:(NSNumber *)squareId;
- (void)setTreasureDiscoveredBySquareId:(NSNumber *)squareId;
- (void)setCurrentTreasureButton:(NSNumber *)index;
- (void)addTreasureOnMapBySquareId:(NSNumber *)squareId;

- (NSMutableDictionary *)compareDataWithCoords:(CGPoint)touchLocation;
- (BOOL)getAllTreasureDiscovered;
- (BOOL)isSquareOccupiedBySquareId:(NSNumber *)index;
- (BOOL)getTreasureButtonTouchableById:(NSNumber *)index;
- (BOOL)getTreasureButtonSelectedById:(NSNumber *)index;
- (BOOL)isSquareVisitedBySquareId:(NSNumber *)index;
- (BOOL)isTreasureOnSquareBySquareId:(NSNumber *)index;
- (BOOL)isTreasureMenuTouchable;
- (NSNumber *)getCurrentTreasureButton;

@end
